<% if @project.enabled == TRUE
      @enabled = "激活"
   else
      @enabled = "锁定"
      end
%>
<h1><%= @page_title %></h1>
<dl>
  <dt>ID</dt>
  <dd><%= @project.id %></dd>
  <dt>Name</dt>
  <dd><%= @project.name %></dd>
  <dt>Code</dt>
  <dd><%= @project.code %></dd>
  <dt>Enable</dt>
  <dd><%= @enabled %></dd>
  <dt>Description</dt>
  <dd><%= @project.description %></dd>
</dl>

<p><%= link_to 'Edit', :action => 'edit', :id => @project %> |
<%= link_to 'List', :action => 'index' %></p>
